Temperature and Salinity Workup:

  1. Compare datalogger data to each other and to YSI sonde data
  2. Present some background summaries and visualizations comparing instruments
  3. Choose datasets best representative of station hydrography, default to RBR
  4. Flag “invalid” data based to freezing line
  5. Calibrate EWLD1 and KALD1 (StarOddi) using YSI data
  6. Show some comparison plots b/n calibrated and uncalibrated data
  7. Add “Qustionable measurement” flags to questionable conductivity/salinity data
  8. Write derived (calibrated, QA/QCd) dataset

CTD-QAQC.Rmd is a cleaned-up version that just spits out derived datasets and final plots

Read in raw data

Compare instrument types (color points) to YSI data (black points)

EWLD1 and KALD1 could use calibration

in April in Jago (JAL), high amounts of stratification meant that YSI may not have hit correct depth and cond/sal reading may be off

Difference in readings between instruments

Calibrate EWLD1 and KALD1 using YSI data

T vs S to check for erroneous data via freezing line

What to flag (“anom” data is below TS line givin instrument precision)

## [1] "SO error: T=0.1, Cond=1.5 mS/cm, RBR error: T=0.002, Cond=0.01 mS/cm"

Choose datasets to use in final table

color=StarOddi, black=RBR

use KALD1 calibrated for Temp and Cond, EWLD1 calibrated for Cond

Next step = Flagging data

Values below freezing line (with error) are flagged “INV” for Invalid

Values that are outliers, or appear to be instrument malfunction (as determined by a trained human) are flagged “QM” for Questionable Measurement

Finalize tables and display data

write.csv(RBR_final, "results/BLE LTER RBRCTD 2018to2019.csv")
write.csv(SO_final, "results/BLE LTER StarOddiCST 2018to2019.csv")